package com.hq.ims.data.event;

import com.hq.ims.data.entity.BusInfoNotification;
import com.hq.ims.data.entity.BusInfoTrack;
import com.hq.ims.data.entityenum.EnumBusKey;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 预警事件
 *
 * @author jbp
 * @date 2024/11/8
 */
public class BusInfoForewarningEvent extends ApplicationEvent {


    @Getter
    protected EnumBusKey forewarningType;

    @Getter
    private BusInfoNotification busInfoNotification;

    @Getter
    private BusInfoTrack busInfoTrack;

    public BusInfoForewarningEvent(Object source, BusInfoTrack busInfoTrack, BusInfoNotification busInfoNotification, EnumBusKey forewarningType) {
        super(source);
        this.busInfoTrack = busInfoTrack;
        this.busInfoNotification = busInfoNotification;
        this.forewarningType = forewarningType;
    }

}
